package com.woniu.feignClient;

import com.woniu.config.FeignConfig;
import com.woniu.outlet.po.ProPlanPo;
import com.woniu.utils.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "erp-pro-plan", qualifier = "proPlan1", configuration = FeignConfig.class) // 标注该类是一个feign接口
public interface ProPlanClient {

    @GetMapping("getPlanByOrderId")
    @ApiOperation("根据订单id查询生产计划信息")
    public ResponseResult<ProPlanPo> findAllProPlan(@RequestParam("orderId") Long orderId);
}